package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.mapper.CouponReceiveRecordMapper;
import com.hl.domain.CouponReceiveRecord;
import com.hl.service.ICouponReceiveRecordService;

/**
 * 优惠券领取记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
@Service
public class CouponReceiveRecordServiceImpl implements ICouponReceiveRecordService 
{
    @Autowired
    private CouponReceiveRecordMapper couponReceiveRecordMapper;

    /**
     * 查询优惠券领取记录
     * 
     * @param id 优惠券领取记录主键
     * @return 优惠券领取记录
     */
    @Override
    public CouponReceiveRecord selectCouponReceiveRecordById(Long id)
    {
        return couponReceiveRecordMapper.selectCouponReceiveRecordById(id);
    }

    /**
     * 查询优惠券领取记录列表
     * 
     * @param couponReceiveRecord 优惠券领取记录
     * @return 优惠券领取记录
     */
    @Override
    public List<CouponReceiveRecord> selectCouponReceiveRecordList(CouponReceiveRecord couponReceiveRecord)
    {
        return couponReceiveRecordMapper.selectCouponReceiveRecordList(couponReceiveRecord);
    }

    /**
     * 新增优惠券领取记录
     * 
     * @param couponReceiveRecord 优惠券领取记录
     * @return 结果
     */
    @Override
    public int insertCouponReceiveRecord(CouponReceiveRecord couponReceiveRecord)
    {
        return couponReceiveRecordMapper.insertCouponReceiveRecord(couponReceiveRecord);
    }

    /**
     * 修改优惠券领取记录
     * 
     * @param couponReceiveRecord 优惠券领取记录
     * @return 结果
     */
    @Override
    public int updateCouponReceiveRecord(CouponReceiveRecord couponReceiveRecord)
    {
        return couponReceiveRecordMapper.updateCouponReceiveRecord(couponReceiveRecord);
    }

    /**
     * 批量删除优惠券领取记录
     * 
     * @param ids 需要删除的优惠券领取记录主键
     * @return 结果
     */
    @Override
    public int deleteCouponReceiveRecordByIds(Long[] ids)
    {
        return couponReceiveRecordMapper.deleteCouponReceiveRecordByIds(ids);
    }

    /**
     * 删除优惠券领取记录信息
     * 
     * @param id 优惠券领取记录主键
     * @return 结果
     */
    @Override
    public int deleteCouponReceiveRecordById(Long id)
    {
        return couponReceiveRecordMapper.deleteCouponReceiveRecordById(id);
    }
}